package cn.edu.sdjzu.controller;

import cn.edu.sdjzu.service.ProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

@RestController
public class WebClientController {
    @Autowired
    private ProviderService providerService;

    @GetMapping("/hello")
    public Mono<String> HelloWorld() {
        return providerService.getHelloWorld();
    }
}
